<?php
/**
 * Created by PhpStorm.
 * User: Shen
 * Date: 2016/6/18
 * Time: 23:23
 */
header('Content-type:text/html;charset=utf-8');
require_once 'upload1.class.php';

$files = getFiles();

foreach ($files as $fileInfo){
    $res = uploadFile($fileInfo);
    echo $res['msg'].'<br />';
    $uploadFiles[] = $res['dest'];
}
$uploadFiles=array_values(array_filter($uploadFiles));
var_dump($uploadFiles);